package com.dlc.shop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dlc.shop.bean.model.PurchaseProd;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YXF
 * @date 2021-09-08 10:42:00
 */
public interface PurchaseProdMapper extends BaseMapper<PurchaseProd> {
    /**
     * 根据供应商商品id，获取供应商商品列表
     *
     * @param partyCodes
     * @return
     */
    List<PurchaseProd> listProdByPurchasePartyCodes(@Param("partyCodes") List<String> partyCodes);

    /**
     * 根据商品id获取采购编号
     * @param prodId
     * @param skuIds
     * @return
     */
    List<String> listPurchaseNumberByProdId(@Param("prodId") Long prodId, @Param("skuIds") List<Long> skuIds);
}
